<div>
    <div class="grid-header clearfix mt10">
        <span class="fl f14 lh30 text-indent">销售业绩统计-按金额</span>

        <div class="fl mt8 ml10 relative">
            <div class="tip-icon tj-icon" ng-mouseenter="rmbShow=true"
                 ng-mouseleave="rmbShow=false"></div>
            <div class="tip-layer ng-cloak" style="left: -30px;top: 27px;" ng-show="!!rmbShow">
                <i class="tip-top-icon tj-icon"></i>

                <p>业绩口径和ERP的签约口径一致</p>
            </div>
        </div>
        <div class="fr btn-group import-btn relative" ng-if="!teamObj.isErp">
            <button  href="javascript: void(0)" class="btn">导入</button>
            <div class="top-userinfo-menu text-center" style="z-index: 100;top: 25px;left: -7px;">
                <div class="top-userinfo-menu-list">
                    <a href="javascript:;" ng-click="downloadTemplate()">模版下载</a>
                    <a href="javascript:;"
                       ui-dialog="业绩导入"
                       ui-dialog-data=""
                       ui-dialog-before-show="beforeUpload($dialog,$dialogScope,$data)"
                       ui-dialog-show="uploadRoom($dialog)"
                       ui-cancel-value="取消"
                       ui-dialog-cache="false"
                       ui-dialog-url="inc/upload_performance.html">业绩导入</a>
                </div>
                <i class="top-userinfo-menu-arrow"></i>
            </div>
        </div>
        <div class="tab-bottom-line"></div>

    </div>
    <div class="auto-wrap mt10">
        <div class="auto-wrap-con clearfix">
            <div class="fl right-panel">

                <div class="table-wrap ng-cloak" ng-show="!loading">
                    <table width="100%"  class="table-wrap-head performance_table"  >
                        <thead>
                        <tr>
                            <td rowspan="3" class="bdr-gray" style="text-align: center">所属组织</td>
                            <td colspan="6">成交金额</td>
                        </tr>
                        <tr>
                            <td colspan="2" class="bdr-gray"> 月度</td>
                            <td colspan="2" class="bdr-gray"> 季度</td>
                            <td colspan="2"> 年度</td>
                        </tr>
                        <tr>
                            <td class="bdr-gray">目标值(万元)</td>
                            <td class="bdr-gray">实际值(万元)</td>
                            <td class="bdr-gray">目标值(万元)</td>
                            <td class="bdr-gray">实际值(万元)</td>
                            <td class="bdr-gray">目标值(万元)</td>
                            <td>实际值(万元)</td>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="team in teamRmb" data-tt-id="{{team.team_id}}" data-tt-parent-id="{{team.parent_id}}">
                            <td>{{team.team_name}}</td>
                            <td height="30">{{team.m_target/10000 | number:2}}</td>
                            <td>
                                <a ng-show="teamObj.isShowDetail" href="#detail?dateMode=3&totalType=rmb&type={{teamObj.type}}&rowType={{team.row_type}}&teamId={{team.team_id}}">{{team.m_actual/10000 | number:2}}</a>
                                <p ng-show="!teamObj.isShowDetail">{{team.m_actual/10000 | number:2}}</p>
                            </td>
                            <td>{{team.n_target/10000 | number:2}}</td>
                            <td>
                                <p >{{team.n_actual/10000 | number:2}}</p>
                            </td>
                            <td>{{team.y_target/10000 | number:2}}</td>
                            <td>
                                <p >{{team.y_actual/10000 | number:2}}</p>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="no-data ng-cloak" ng-if="!teamRmb || teamRmb.length==0">
                        <span>暂无数据</span>
                    </div>
                </div>
                <div class="tab_loading" ng-show="loading"><span>加载中...</span></div>
            </div>
        </div>
    </div>
</div>
<div ng-if="teamObj.isErp">
    <div class="grid-header clearfix mt10" >
        <span class="fl f14 lh30 text-indent">销售业绩统计-按套数</span>

        <div class="fl mt8 ml10 relative">
            <div class="tip-icon tj-icon" ng-mouseenter="tsShow=true"
                 ng-mouseleave="tsShow=false"></div>
            <div class="tip-layer ng-cloak" style="left: -30px;top: 27px;" ng-show="!!tsShow">
                <i class="tip-top-icon tj-icon"></i>

                <p>业绩口径和ERP的签约口径一致</p>
            </div>
        </div>
        <div class="tab-bottom-line"></div>

    </div>
    <div class="auto-wrap mt10">
        <div class="auto-wrap-con clearfix">
            <div class="fl right-panel">

                <div class="table-wrap ng-cloak" ng-show="!loading">
                    <table width="100%"  class="table-wrap-head performance_table" >
                        <thead>
                        <tr>
                            <td rowspan="3" class="bdr-gray" style="text-align: center">所属组织</td>
                            <td colspan="6">成交套数</td>
                        </tr>
                        <tr>
                            <td colspan="2" class="bdr-gray"> 月度</td>
                            <td colspan="2" class="bdr-gray"> 季度</td>
                            <td colspan="2"> 年度</td>
                        </tr>
                        <tr>
                            <td class="bdr-gray">目标值(套)</td>
                            <td class="bdr-gray">实际值(套)</td>
                            <td class="bdr-gray">目标值(套)</td>
                            <td class="bdr-gray">实际值(套)</td>
                            <td class="bdr-gray">目标值(套)</td>
                            <td>实际值(套)</td>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="team in teamTs" data-tt-id="{{team.team_id}}" data-tt-parent-id="{{team.parent_id}}">
                            <td>{{team.team_name}}</td>
                            <td height="30">{{team.m_target | number:2}}</td>
                            <td>
                                <a ng-show="teamObj.isShowDetail" href="#detail?dateMode=3&totalType=ts&type={{teamObj.type}}&rowType={{team.row_type}}&teamId={{team.team_id}}">{{team.m_actual | number:2}}</a>
                                <p ng-show="!teamObj.isShowDetail">{{team.m_actual | number:2}}</p>
                            </td>
                            <td>{{team.n_target | number:2}}</td>
                            <td>
                                <p >{{team.n_actual | number:2}}</p>
                            </td>
                            <td>{{team.y_target | number:2}}</td>
                            <td>
                                <p >{{team.y_actual | number:2}}</p>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="no-data ng-cloak" ng-if="!teamTs || teamTs.length == 0">
                        <span>暂无数据</span>
                    </div>
                </div>
                <div class="tab_loading" ng-show="loading"><span>加载中...</span></div>
            </div>
        </div>
    </div>
</div>
<div ng-if="teamObj.isErp">
    <div class="grid-header clearfix mt10" >
        <span class="fl f14 lh30 text-indent">销售业绩统计-按面积</span>

        <div class="fl mt8 ml10 relative">
            <div class="tip-icon tj-icon" ng-mouseenter="areaShow=true"
                 ng-mouseleave="areaShow=false"></div>
            <div class="tip-layer ng-cloak" style="left: -30px;top: 27px;" ng-show="!!areaShow">
                <i class="tip-top-icon tj-icon"></i>

                <p>业绩口径和ERP的签约口径一致</p>
            </div>
        </div>
        <div class="tab-bottom-line"></div>

    </div>
    <div class="auto-wrap mt10">
        <div class="auto-wrap-con clearfix">
            <div class="fl right-panel">

                <div class="table-wrap ng-cloak" ng-show="!loading">
                    <table width="100%"  class="table-wrap-head performance_table" >
                        <thead>
                        <tr>
                            <td rowspan="3" class="bdr-gray" style="text-align: center">所属组织</td>
                            <td colspan="6">成交面积</td>
                        </tr>
                        <tr>
                            <td colspan="2" class="bdr-gray"> 月度</td>
                            <td colspan="2" class="bdr-gray"> 季度</td>
                            <td colspan="2"> 年度</td>
                        </tr>
                        <tr>
                            <td class="bdr-gray">目标值(㎡)</td>
                            <td class="bdr-gray">实际值(㎡)</td>
                            <td class="bdr-gray">目标值(㎡)</td>
                            <td class="bdr-gray">实际值(㎡)</td>
                            <td class="bdr-gray">目标值(㎡)</td>
                            <td>实际值(㎡)</td>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="team in teamArea" data-tt-id="{{team.team_id}}" data-tt-parent-id="{{team.parent_id}}">
                            <td>{{team.team_name}}</td>
                            <td height="30">{{team.m_target | number:2}}</td>
                            <td>
                                <a ng-show="teamObj.isShowDetail" href="#detail?dateMode=3&totalType=area&type={{teamObj.type}}&rowType={{team.row_type}}&teamId={{team.team_id}}">{{team.m_actual | number:2}}</a>
                                <p ng-show="!teamObj.isShowDetail">{{team.m_actual | number:2}}</p>
                            </td>
                            <td>{{team.n_target | number:2}}</td>
                            <td>
                                <p >{{team.n_actual | number:2}}</p>
                            </td>
                            <td>{{team.y_target | number:2}}</td>
                            <td>
                                <p >{{team.y_actual | number:2}}</p>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="no-data ng-cloak"  ng-if="!teamArea || teamArea.length == 0">
                        <span>暂无数据</span>
                    </div>
                </div>
                <div class="tab_loading" ng-show="loading"><span>加载中...</span></div>
            </div>
        </div>
    </div>
</div>
<div ng-if="teamObj.isErp">
    <div class="grid-header clearfix mt10" >
        <span class="fl f14 lh30 text-indent">销售业绩统计-按回款</span>

        <div class="fl mt8 ml10 relative">
            <div class="tip-icon tj-icon" ng-mouseenter="hkShow=true"
                 ng-mouseleave="hkShow=false"></div>
            <div class="tip-layer ng-cloak" style="left: -30px;top: 27px;" ng-show="!!hkShow">
                <i class="tip-top-icon tj-icon"></i>

                <p>回款口径与ERP回款口径一致</p>
            </div>
        </div>
        <div class="tab-bottom-line"></div>

    </div>
    <div class="auto-wrap mt10">
        <div class="auto-wrap-con clearfix">
            <div class="fl right-panel">

                <div class="table-wrap ng-cloak" ng-show="!loading">
                    <table width="100%"  class="table-wrap-head performance_table" >
                        <thead>
                        <tr>
                            <td rowspan="3" class="bdr-gray" style="text-align: center">所属组织</td>
                            <td colspan="6">回款</td>
                        </tr>
                        <tr>
                            <td colspan="2" class="bdr-gray"> 月度</td>
                            <td colspan="2" class="bdr-gray"> 季度</td>
                        </tr>
                        <tr>
                            <td class="bdr-gray">目标值(万元)</td>
                            <td class="bdr-gray">实际值(万元)</td>
                            <td class="bdr-gray">目标值(万元)</td>
                            <td class="bdr-gray">实际值(万元)</td>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="team in teamHk" data-tt-id="{{team.team_id}}" data-tt-parent-id="{{team.parent_id}}">
                            <td>{{team.team_name}}</td>
                            <td height="30">{{team.m_target/10000 | number:2}}</td>
                            <td>
                                <a ng-show="teamObj.isShowDetail" href="#detail?dateMode=3&totalType=hk&type={{teamObj.type}}&rowType={{team.row_type}}&teamId={{team.team_id}}&userType={{team.user_type}}">{{team.m_actual/10000 | number:2}}</a>
                                <p ng-show="!teamObj.isShowDetail">{{team.m_actual/10000 | number:2}}</p>
                            </td>
                            <td>{{team.n_target/10000 | number:2}}</td>
                            <td>
                                <p>{{team.n_actual/10000 | number:2}}</p>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="no-data ng-cloak"  ng-if="!teamHk || teamHk.length == 0">
                        <span>暂无数据</span>
                    </div>
                </div>
                <div class="tab_loading" ng-show="loading"><span>加载中...</span></div>
            </div>
        </div>
    </div>
</div>
